A Code Generation Interface for ANSI C

نویسندگان

  • Christopher W. Fraser
  • David R. Hanson
چکیده

1 cc is a retargetable, production compiler for ANSI C; it has been ported to the VAX, Motorola 68020, SPARC, and MIPS R3000, and some versions have been in use for over a year and a half. It is smaller and faster than generally available alternatives, and its local code is comparable. This paper describes the interface between the target-independent front end and the targetdependent back ends. The interface consists of shared data structures, a few functions, and a dag language. While this approach couples the front and back ends tightly, it results in efficient, compact compilers. The interface is illustrated by detailing a code generator that emits naive VAX code.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

From UML to ANSI-C - An Eclipse-Based Code Generation Framework

Model-driven engineering has recently gained broad acceptance in the field of embedded and real-time software systems. While larger embedded and real-time systems, developed e.g. in aerospace, telecommunication, or automotive industry, are quite well supported by model-driven engineering approaches based on the UML, small embedded and real-time systems, as they can for example be found in the i...

متن کامل

Xwake 1.1: a New Impedance and Wake Field Software Package

This paper outlines the novel features found in Xwake 1.1. This release of Xwake is a body of revolution (BOR) conformal finite difference time domain (FDTD) code written to model longitudinal and transverse wake fields and impedances. The package is capable of accurately modeling slowly tapered structures as well as devices containing dielectric and permeable media. A state of the art perfectl...

متن کامل

Conversion of ST Control Programs to ANSI C for Verification Purposes

The paper presents a Behavioral Interface Specification Language for control programs written in ST language of IEC 61131-3 standard. The specification annotations are stored as special comments in ST code. The code and comments are then converted into ANSI C form for further transformation with Caduceus and Why tools. Verification of compliance between specification and code is performed in Coq.

متن کامل

Integer code generation for the TI TMS320C62X

This paper presents a methodology which enables the generation of C62x optimized fixed-point C-code from a floating-point description of an algorithm. The FRIDGE design environment transforms floating-point ANSI-C code with local fixed-point annotations into an internal bit-true representation. From this representation we generate C62x optimized integer C code utilizing the code transformation ...

متن کامل

Feasibility study on Handel C for Embedded Control

The control engineering group at the University of Twente creates control applications for embedded systems among others. In order to create such applications, graphical modelling tools such as 20-sim and gCSP are used to generate software for various platforms. Currently, the output of these code generating programs is ANSI C code, which rules out the use of FPGA's as a target. FPGA devices of...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Softw., Pract. Exper.

دوره 21  شماره 

صفحات  -

تاریخ انتشار 1991